package com.uy.cuantoconocesdeuruguay;

import android.app.Activity; 
import android.os.Bundle;
import android.widget.ArrayAdapter;

public abstract class BaseActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		trackScreen();
//		Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
//			@Override
//			public void uncaughtException(Thread paramThread, Throwable paramThrowable) {
//				paramThrowable.printStackTrace();
//				if (paramThrowable.getMessage().equals(ConnectivityException.message)) {
//					// NoInternetDialogUtils.createNoConnectionPopup(BaseActivity.this);\
//				} else {
//					if (paramThrowable.getMessage().contains("facebookLoginErrorWorkaround")){
//						ApplicationUtils.restartApplicationFacebookException(BaseActivity.this);
//					}else{
//						ApplicationUtils.restartApplication(BaseActivity.this);
////						throw paramThrowable;
//					}
//				}
//			}
//		});
	}
	
	public abstract void trackScreen();
 
	public ArrayAdapter<?> loadDataOnList() {
		return null;
	}
}
